//
//  AppUIDefine.h
//  CategoryKit
//
//  Created by xinpenghui on 16/12/6.
//  Copyright © 2016年 Wanda. All rights reserved.
//

#ifndef AppUIDefine_h
#define AppUIDefine_h

#define kDefaultWindowWidth [UIScreen mainScreen].bounds.size.width
#define kDefaultWindowHeight [UIScreen mainScreen].bounds.size.height

#ifndef weakObj
#if __has_feature(objc_arc)
#define weakObj(object)  __weak __typeof__(object) weak##_##object = object;
#else
#define weakObj(object)  __block __typeof__(object) block##_##object = object;
#endif
#endif

#ifndef strongObj
#if __has_feature(objc_arc)
#define strongObj(object)  __typeof__(object) object = weak##_##object; if(!object) return;
#else
#define strongObj(object)  __typeof__(object) object = block##_##object; if(!object) return;
#endif
#endif

#endif /* AppUIDefine_h */
